package cn.edu.scau.nursingcenter.entiry;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * 管理员实体类Admin
 * @author feng
 *
 */
@ApiModel(value = "管理员实体类")
@Entity(name = "admin")
@Table(name = "admin")
@Data
@Builder
@AllArgsConstructor
public class Admin implements Serializable{
	
	/**
	 * 管理员编号 主键 自增
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "管理员编号")
	private Integer admin_id;
	/**
	 * 管理员名字
	 */
	@ApiModelProperty(value = "管理员名字")
	private String admin_name;
	/**
	 * 管理员密码
	 */
	@ApiModelProperty(value = "管理员密码")
	private String admin_password;
	/**
	 * 无参构造方法
	 */
	public Admin() {}
	
	private static final long serialVersionUID = 1019927915986560086L;

}
